import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)

const router = new Router({
  routes:[
    {path:'/about', component: () => import('../components/About')},
    {path:'/home', component: () => import('../components/Home')},
    {path:'/movie/:id', component: () => import('../components/Movie'), children:[
      {path: 'tab1', component: () => import('../components/tabs/Tab1')},
      {path: 'tab2', component: () => import('../components/tabs/Tab2')}
    ]}
  ]
})

export default router